<?php
require_once 'const/RequestConst.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>后台管理</title>
        <meta http-equiv="Content-Type"	content="text/html;	charset=utf-8" />
        <link rel="stylesheet" type="text/css" media="all" href="/css/admin/login.css" />
    </head>
    <body>
        <div id="login">
            <div class="warp">
                <div class="content">
                    <h1></h1>
                    <form action="<?php echo $this->redirectURL ?>" method="post" onsubmit="return checkform();">
                        <div class="item"><div class="input"><div class="icon" title="用户名"></div>
                                <input name="<?php echo P_EMAIL ?>" value="" id="admin_name" tabindex="1" type="text" /></div><label>用户名：</label></div>
                        <div class="item"><div class="input"><div class="icon2" title="密&nbsp;&nbsp;码"></div>
                                <input name="<?php echo P_PASSWORD ?>" value="" id="admin_password" tabindex="2" type="password" /></div><label>密&nbsp;&nbsp;码：</label></div>
                        <input type="submit" tabindex="3" value="" class="submit" />
                    </form>
                    <div id="notice"></div>
                    <p class="copyright">Powered by OnlineShop Copyright © 2011-2012</p>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            <!--
            window.onload = function()
            {
                document.getElementById('admin_name').focus();
            }
            function checkform()
            {
                var notice = document.getElementById('notice');
                var admin_name = document.getElementById("admin_name").value;
                if(!admin_name)
                {
                    notice.innerHTML = '管理员名称不能为空！';
                    return false;
                }
                var admin_password = document.getElementById("admin_password").value;
                if(!admin_password)
                {
                    notice.innerHTML = '管理员密码不能为空！';
                    return false;
                }
            }
            //-->
        </script>
    </body>
</html>